/*
 * Copyright @ 2020-2021 ­ïwb£¨Denvie£© All rights reserved.
 */

package cn.denvie.springboot.mybatis.user.domain.entity;

import cn.denvie.springboot.mybatis.common.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * 用户对象
 * 
 * @author Denvie
 * @date 2021/7/03
 * @since 1.0.0
 */
@Data
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@TableName("user")
@ApiModel("用户对象")
public class User extends BaseEntity {
    /**
     * 主键ID
     */
    @TableField(value = "id")
    @ApiModelProperty("主键ID")
    private Long id;

    /**
     * 姓名
     */
    @TableField(value = "name")
    @ApiModelProperty("姓名")
    private String name;

    /**
     * 性别
     */
    @TableField(value = "sex")
    @ApiModelProperty("性别")
    private Boolean sex;

    /**
     * 年龄
     */
    @TableField(value = "age")
    @ApiModelProperty("年龄")
    private Integer age;

    /**
     * 邮箱
     */
    @TableField(value = "email")
    @ApiModelProperty("邮箱")
    private String email;

    /**
     * 是否已删除
     */
    @TableField(value = "is_delete")
    @ApiModelProperty("是否已删除")
    private Boolean isDelete;

    /**
     * 创建时间
     */
    @TableField(value = "gmt_create")
    @ApiModelProperty("创建时间")
    private Date gmtCreate;

    /**
     * 修改时间
     */
    @TableField(value = "gmt_modified")
    @ApiModelProperty("修改时间")
    private Date gmtModified;
}